package com.wangcanxuan.www.po;

import com.wangcanxuan.www.annotation.orm.Column;
import com.wangcanxuan.www.annotation.orm.PrimaryKey;
import com.wangcanxuan.www.annotation.orm.Table;

/**
 * 申请实体类与数据库apply表一一映射
 *
 * @author HHLJ
 * @date 2022/03/15
 */
@Table(tableName = "apply")
public class Apply {
    @PrimaryKey
    @Column(columnName = "id",description = "主键")
    private Integer id;

    @Column(columnName = "applicant_id",description = "申请人的id")
    private Integer applicantId;

    @Column(columnName = "applying_tribe_id",description = "申请的部落id")
    private Integer applyingTribeId;

    @Column(columnName = "auditor_id",description = "审批人id")
    private Integer auditorId;

    @Column(columnName = "status",description = "申请状态")
    private Integer status;

    public Apply() {
    }

    public Apply(Integer id, Integer applicantId, Integer applyingTribeId, Integer auditorId, Integer status) {
        this.id = id;
        this.applicantId = applicantId;
        this.applyingTribeId = applyingTribeId;
        this.auditorId = auditorId;
        this.status = status;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getApplicantId() {
        return applicantId;
    }

    public void setApplicantId(Integer applicantId) {
        this.applicantId = applicantId;
    }

    public Integer getApplyingTribeId() {
        return applyingTribeId;
    }

    public void setApplyingTribeId(Integer applyingTribeId) {
        this.applyingTribeId = applyingTribeId;
    }

    public Integer getAuditorId() {
        return auditorId;
    }

    public void setAuditorId(Integer auditorId) {
        this.auditorId = auditorId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Apply{" +
                "id=" + id +
                ", applicantId=" + applicantId +
                ", applyingTribeId=" + applyingTribeId +
                ", auditorId=" + auditorId +
                ", status=" + status +
                '}';
    }
}
